package cn.dnui_wnx725.dnuifood_16110100725.model;

import java.util.List;

import cn.dnui_wnx725.dnuifood_16110100725.bean.FoodBean;
import cn.dnui_wnx725.dnuifood_16110100725.iface.FoodbyShopIface;
import cn.dnui_wnx725.dnuifood_16110100725.listener.ListListener;
import cn.dnui_wnx725.dnuifood_16110100725.service.Service;
import retrofit2.Call;
import retrofit2.Retrofit;



public class SearchModel extends RetrofitBaseModel implements FoodbyShopIface {
    Retrofit retrofit;
    Service service;

    public SearchModel(){
        retrofit = getRetrofit();
        service = getService();
    }
    @Override
    public void getFoodMessage(String shop_id, ListListener listListener) {
        Call<List<FoodBean>> call = service.getSeacrhFood(shop_id);
        callenqueueList(call,listListener);
    }
}